package middlecontent.loader;

/**
 * @Author: fxy
 * @Date: 2022/02/08/15:19
 * @Description:
 */
public class ClassLoaderTest2 {
    public static void main(String[] args) {
        try {
            ClassLoader classLoader = Class.forName("java.lang.String").getClassLoader();
            System.out.println(classLoader);

            ClassLoader contextClassLoader = Thread.currentThread().getContextClassLoader();
            System.out.println(contextClassLoader);

            ClassLoader parent = ClassLoader.getSystemClassLoader().getParent();
        } catch (ClassNotFoundException e) {
            e.printStackTrace();
        }
    }
}
